﻿namespace ServerManager.Models
{
    public class MachineInfo : ViewModelBase
    {
        private string hostName = string.Empty;
        private string osVersion = string.Empty;
        private string osName = string.Empty;
        private string ipAddress = string.Empty;

        public required string HostName
        {
            get
            {
                return hostName;
            }

            set
            {
                if (hostName != value)
                {
                    hostName = value;
                    OnPropertyChanged(nameof(HostName));
                }
            }
        }
        public string OsVersion
        {
            get => osVersion;
            set
            {
                if (osVersion != value)
                {
                    osVersion = value;
                    OnPropertyChanged(nameof(osVersion));
                }
            }
        }
        public string OsName { get => osName; set => osName = value; }
        public required string IpAddress
        {
            get => ipAddress;
            set
            {
                if (ipAddress != value)
                {
                    ipAddress = value;
                    OnPropertyChanged(nameof(ipAddress));
                }
            }
        }
    }
}
